#pragma once
#include <memory>
#include "TCPCilent.h"
#include "Timer.h"
#include "MsgHandler.h"
class CDevMngSvr
{
public:
	CDevMngSvr(uv_loop_t* loop);
	~CDevMngSvr();
	void StartRegister(std::string ip, uint16_t port);
	void SetModuleID(uint16_t moduleid){ m_moduleid =moduleid;}
	void StopSvr();
private:
	CTimer m_timer;
	CTCPClientPtr m_clientPtr;
	CMsgHandlerPtr m_msgHlrPtr;
	uint64_t m_moduleid;
};
typedef std::shared_ptr<CDevMngSvr> CDevMngSvrPtr;
